package com.intigas.credigas.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the credito database table.
 * 
 */
@Entity
@Table(name="credito")
public class Credito implements Serializable {
	private static final long serialVersionUID = 1L;
	private int codCred;
	private String codCaja;
	private String codChofer;
	private String codCliente;
	private String codProd;
	private String compania;
	private String familiaProd;
	private Date fechReg;
	private double monto;

    public Credito() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="cod_cred", unique=true, nullable=false)
	public int getCodCred() {
		return this.codCred;
	}

	public void setCodCred(int codCred) {
		this.codCred = codCred;
	}


	@Column(name="cod_caja", length=15)
	public String getCodCaja() {
		return this.codCaja;
	}

	public void setCodCaja(String codCaja) {
		this.codCaja = codCaja;
	}


	@Column(name="cod_chofer", length=15)
	public String getCodChofer() {
		return this.codChofer;
	}

	public void setCodChofer(String codChofer) {
		this.codChofer = codChofer;
	}


	@Column(name="cod_cliente", length=15)
	public String getCodCliente() {
		return this.codCliente;
	}

	public void setCodCliente(String codCliente) {
		this.codCliente = codCliente;
	}


	@Column(name="cod_prod", length=15)
	public String getCodProd() {
		return this.codProd;
	}

	public void setCodProd(String codProd) {
		this.codProd = codProd;
	}


	@Column(length=2)
	public String getCompania() {
		return this.compania;
	}

	public void setCompania(String compania) {
		this.compania = compania;
	}


	@Column(name="familia_prod", length=15)
	public String getFamiliaProd() {
		return this.familiaProd;
	}

	public void setFamiliaProd(String familiaProd) {
		this.familiaProd = familiaProd;
	}


    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="fech_reg")
	public Date getFechReg() {
		return this.fechReg;
	}

	public void setFechReg(Date fechReg) {
		this.fechReg = fechReg;
	}


	public double getMonto() {
		return this.monto;
	}

	public void setMonto(double monto) {
		this.monto = monto;
	}

}